How to handle: You cannot edit the attribute type '...' as it is in use

Hello

Let me upgrade only this article.

I have had the same problem, and I have had a most simpler solution:

There are a set of different overloads you can use

AttrType modify(AttrType type,
             string newName
             [, string codes[ ],
             int values[ ],
             int colors[ ],
             string descs[ ]
             [, int arrMaps[ ],]]
             string &errmess)
AttrType modify(AttrType type,
             AttrBaseType new,
             string &errmess)

If you have to perform a complexe set of changes you have to use the most largest version.

modify(attType, sTypeName, sArrMemberValue, iArrValue, iArrColor, sArrDescription, iArrMapping, sErrorMessage);

This commands works. If you change it to a version with less parameters i.E.

modify(attType, sTypeName, sArrMemberValue, iArrValue, iArrColor, iArrMapping, sErrorMessage);

then the error appears (in case of too complex changes at one point).

Best regards

Wolfgang

 


Wolfgang Uhr - Thu Jul 10 05:37:21 EDT 2014